package com.oig.base.api.factory;

import com.oig.base.api.UnitConvRateService;
import com.oig.base.api.fallback.UnitConvRateServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class UnitConvRateFallBackFactory implements FallbackFactory<UnitConvRateService> {

    @Override
    public UnitConvRateService create(Throwable cause) {
        UnitConvRateServiceFallBackImpl unitConvRateService = new UnitConvRateServiceFallBackImpl();
        unitConvRateService.setCause(cause);
        return unitConvRateService;
    }
}
